package temp;

import java.text.SimpleDateFormat;

public class ProjectEmailDto extends ProjectEmail{

	private String beginTimes;
	
	private String endTimes;
	
	private String updateUserName;
	
	private String statusName;
	
	private String suri;
	
	private String createTimes;
	
	private String updateTimes;
	
	private String searchName;
	
	private static SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd HH:MM:ss");
	
	
	public String getSearchName() {
		return searchName;
	}
	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}
	
	public String getCreateTimes() {
		
		return df.format(this.getCreateTime());
	}
	public String getUpdateTimes() {
		if( null != this.getUpdateTime()){
			return df.format(this.getUpdateTime());
		}
		return updateTimes;
	}
	
	public String getUpdateUserName() {
		return updateUserName;
	}
	public void setUpdateUserName(String updateUserName) {
		this.updateUserName = updateUserName;
	}
	public String getStatusName() {
		
		if(this.getStatus() == 0){
			suri = "未发送";
		}
		if(this.getStatus() == 1){
			suri = "已发送";
		}
		return suri;
	}
	public String getBeginTimes() {
		return beginTimes;
	}
	public void setBeginTimes(String beginTimes) {
		this.beginTimes = beginTimes;
	}
	public String getEndTimes() {
		return endTimes;
	}
	public void setEndTimes(String endTimes) {
		this.endTimes = endTimes;
	}

}
